﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%
        var page = ViewData["Page"] as PageEntity; %>
    <%=Html.Title("{0} - {1}", page.Name, ForumContext.Configuration.ForumName)%>
    <%=Html.Keywords(ForumContext.Configuration.Keywords)%>
    <%=Html.Description(ForumContext.Configuration.Description)%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        Html.RenderPartial("LogOn");

        Html.RenderPartial("Navigation");

        string _cmd = Request.QueryString["do"];
        if (_cmd == "result")
        {

            Html.RenderPartial("SearchResult", ViewData["Results"]);
        }
        else
            Html.RenderPartial("SearchAdvanced");
        
       
    %>
</asp:Content>
